package lab02.test15;

import java.util.*;

public class Test15 {
    public static void main(String[] args) {
        Graduate a = new Graduate();
        a.name = "zhangsan";
        a.sex = "男";
        a.age = 24;

        System.out.print("input pay:");
        a.setPay();

        System.out.print("input fee:");
        a.setFee();
        if (a.getPay() - a.getFee() > 2000) {
            System.out.println("You income is enough！");
        } else
            System.out.println("You  need a loan!");
    }
}
